package edu.whu.demo.dao;

import edu.whu.demo.domain.Commodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxj
 * @since 2023-10-18
 */
@Mapper
public interface CommodityDao extends BaseMapper<Commodity> {
    @Insert("INSERT INTO commodity (id,name,price,number) VALUES (#{id},#{name}),#{price}),#{number})")
    void insertCommodity(Commodity commodity);
}
